#ifndef _VENDINGMACHINE_H_
#define _VENDINGMACHINE_H_

#include <string>
#include "Product.h"
#include "Menu.h"
#include "Coin.h"
#include "Money.h"

using namespace std;

namespace Homework
{
class VendingMachine
{

	private:
		int choice;
		int choice2;
		unsigned payType;
		Product * p;
		Menu * m;
		Coin * c;
		double amountLeft;
		bool checkAmount;
		double payment;
		double payment2;

	public:
		VendingMachine(void);
		virtual ~VendingMachine();
		void run();
		void DisplayMenu();
		double CheckPayment(Money &);
		bool Check(Money & m);
		double getPayment(int amount);
};
}
#endif //_VENDINGMACHINE_H_